import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:note/common/common.dart';
import 'package:note/widgets/BasePage.dart';
import 'package:note/widgets/markdownView.dart';

import 'logic.dart';

class ReadMePage extends StatelessWidget {
  ReadMePage({Key? key}) : super(key: key);

  final logic = Get.put(ReadMePageLogic());
  final state = Get.find<ReadMePageLogic>().state;

  @override
  Widget build(BuildContext context) {
    return BasePage(
      child: Scaffold(
        appBar: AppBar(
            backgroundColor: Styles.backgroundColor,
            foregroundColor: Styles.mainThemeColor,
            title: const Text(
              'Markdown使用方法',
              maxLines: 1,
            )),
        body: const MarkDownView(
          path: FilePath.readMe,
        ),
      ),
    );
  }
}
